<?php
$isShowIndex = $this->parameters->getIsShowIndex();
$imageWidth = $this->parameters->getImageWidth();
$imageHeight = $this->parameters->getImageHeight();
?>
<?php if($this->parameters->getTitleEnabled()):?>
    <dl>
    <dt><?php echo $this->parameters->getTitle()?></dt>
    <?php for($i = 0; $i < $this->parameters->getEndNameIndex(); $i++):
    $poi = $this->pois[$i];
    ?>
    <dd>
    <?php if($this->parameters->getIsShowImage() && $i < $this->parameters->getEndImageIndex()): ?>
    <a href="<?php echo $this->getUrl(array('id'=>$poi->getId()), 'card', 'shop', 'customer')?>">
    <span>
    <img src="<?php echo $this->getStorefrontPicture($poi->getRoadId(), $poi->getStorefrontPicture()) ?>" title="<?php echo $poi->getShopName() ?>" alt="<?php echo $poi->getShopName() ?>"
        width="<?php echo $imageWidth ?>" height="<?php echo $imageHeight?>"/>
    </span>
    </a>
    <?php endif; 
            if($this->parameters->getIsShowIndex()):
        ?>
        <em class="index_<?php echo $i+1?>"><?php echo $isShowIndex? $i + 1: ''?></em>
        <?php endif;?>
        <a href="<?php echo $this->getUrl(array('id'=>$poi->getId()), 'card', 'shop', 'customer')?>">
            <?php echo $poi->getShopName()?>
        </a>
    </dd>
    <?php endfor; ?>
    </dl>
<?php else: ?>
<ul>
    <?php for($i = 0; $i < $this->parameters->getEndNameIndex(); $i++):?>
    <li>
        <?php if($this->parameters->getIsShowImage() && $i < $this->parameters->getEndImageIndex()): ?>
        <a href="<?php echo $this->getUrl(array('id'=>$poi->getId()), 'card', 'shop', 'customer')?>">
            <span>
            <img src="<?php echo $this->getStorefrontPicture($poi->getRoadId(), $poi->getStorefrontPicture()) ?>" title="<?php echo $poi->getShopName() ?>" alt="<?php echo $poi->getShopName() ?>"
            width="<?php echo $imageWidth ?>" height="<?php echo $imageHeight?>"/>
            </span>
        </a>
        <?php endif; 
            if($this->parameters->getIsShowIndex()):
        ?>
        <em class="index_<?php echo $i+1?>"><?php echo $isShowIndex? $i + 1: ''?></em>
        <?php
            endif;
        ?>
        <a href="<?php echo $this->getUrl(array('id'=>$poi->getId()), 'card', 'shop', 'customer')?>">
            <?php echo $poi->getShopName()?>
        </a>
    </li>
    <?php endfor; ?>
</ul>
<?php endif;?>